<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width"/>
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>测试接口</title>
    <script src="/zyzx/res_sc/common/jquery.min.js" type="text/javascript"></script>
    <script src="/zyzx/res_sc/common/ajax-jquery-plugin.js" type="text/javascript"></script>
    <script type="text/javascript">
        <!--
        function clickBtn(){
            $.ajaxSubmit({
                async:true,//是否异步
                page : 'CommonUrl',//调用后台类
                listener : 'testAjax',//调用方法
                param : "testcode=112233" ,//传递参数
                partId : '',//刷新区域
                formId : '',//提交表单
                afterFn:function(data){
                    if(data!=undefined && data!=null && data[0]['RESULT_CODE'] == '0'){
                        console.log(data[0]['TESTCODE']);
                    }else{
                        console.log("返回数据为空！");
                    }
                }
            });
        }
        -->
    </script>
</head>
<body>
<div><a href="javascript:void(0)" onclick="clickBtn()">测试AJAX</a></div>
<!--循环标签-->
<div>
    <ul>
        <span jwcid="@Foreach" source="ognl:infos" value="ognl:info">
            <li><span jwcid="@Insert" value="ognl:info.BTN_NAME"></span></li>
        </span>
    </ul>
</div>
<!--条件标签-->
<div>
    <span jwcid="@Conditional" condition='ognl:"1".equals(mp.FLAG)'>
       is True
    </span>
    <span jwcid="@Conditional" condition='ognl:!"1".equals(mp.FLAG)'>
        is false
    </span>
</div>
</body>
</html>
